<div class="box">
    <div class="box-header">
        <h3 class="box-title">VIP套餐管理</h3>
        <div class="box-tools pull-right">
            <ob_link><a class="btn btn-primary" href="{:url('packageadd')}"><i class="fa fa-plus"></i> 新增套餐</a></ob_link>
        </div>
    </div>
    <div class="box-body">
        <table class="table table-bordered table-striped">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>套餐名称</th>
                    <th>价格</th>
                    <th>有效期(天)</th>
                    <th>排序</th>
                    <th>状态</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {volist name="list" id="vo"}
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>¥{$vo.price}</td>
                    <td>{$vo.duration_days}</td>
                    <td>{$vo.sort}</td>
                    <td>
                        {if condition="$vo.status eq 1"}
                            <span class="label label-success">启用</span>
                        {else/}
                            <span class="label label-danger">禁用</span>
                        {/if}
                    </td>
                    <td>{$vo.create_time}</td>
                    <td>
                        <ob_link><a class="btn btn-xs btn-info" href="{:url('packageedit', ['id' => $vo.id])}">编辑</a></ob_link>
                        <ob_link><a class="btn btn-xs btn-danger" href="{:url('packagedelete', ['id' => $vo.id])}" onclick="return confirm('确定要删除吗？')">删除</a></ob_link>
                    </td>
                </tr>
                {/volist}
            </tbody>
        </table>
    </div>
</div>